package com.xyw.code.study202007291.functiontet;

import java.util.function.Supplier;

/**
 * Created with IntelliJ IDEA.
 * User: xuyiwei
 * Date: 2020/7/30
 * Time: 上午9:14
 * Email: 1328312923@qq.com
 * Description: No Description
 **/
public class SupplierTest {
    public static void main(String[] args) {
        Supplier<Double> supplier = ()->Math.random();
        for(int i=0;i<10;i++){
            System.out.println(supplier.get());
        }
    }
}
